-- GENERATED SPELL FOR [Sarah Forthright] --


function spell0_30583(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30583', 595, 1)
end

function spell1_30583(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30583', 6292, 1)
end

function spell2_30583(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30583', 5289, 1)
end

function spell3_30583(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_30583', 555, 1)
end

function spell4_30583(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_30583', 2000, 1)
end

function Sorts_30583(pUnit, Event)
local choix_sorts_30583 = math.random(0, 4)
if choix_sorts_30583 == 0 then
pUnit:RegisterEvent('spell0_30583', 1, 1)
end
if choix_sorts_30583 == 1 then
pUnit:RegisterEvent('spell1_30583', 1, 1)
end
if choix_sorts_30583 == 2 then
pUnit:RegisterEvent('spell2_30583', 1, 1)
end
if choix_sorts_30583 == 3 then
pUnit:RegisterEvent('spell3_30583', 1, 1)
end
if choix_sorts_30583 == 4 then
pUnit:RegisterEvent('spell4_30583', 1, 1)
end
end

function mob30583_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30583', math.random(1500, 3000), 1)
end

function mob30583_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30583_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30583_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30583, 1, 'mob30583_Action')
RegisterUnitEvent(30583, 2, 'mob30583_Leave')
RegisterUnitEvent(30583, 3, 'mob30583_Kill')
RegisterUnitEvent(30583, 4, 'mob30583_Die')
